<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>for循环</title>
    <style>

        body {
            font-size: 100px;
        }

       .box {
           width: 200px;
       }
    </style>
</head>
<body>
    
    <div class="box">

    </div>

    <script>
        
       /* (function () {

            for (var i=1;i<100;i++) {
                if(i%3===0) {
                    console.log('PA');
                }else{
                    console.log(i);
                } 
            }


        })();*/


       /* (function () {

            var timeHour = new Date().getHours();
            if(timeHour>12){
                alert('Good afternoon!');
            }

        })();*/

        (function () {
            
            let a = ["a","b","c","d"];
            let b = new Map([["jerry",100],["lerry",98],["kerry",59]]);

            function forfn (target) {
                for (const val of target) {
                    console.log(val);
                }
            }
            
            forfn (b);

        })();

     
    </script>
</body>
</html>